package com.zxc.database;

import java.sql.SQLException;

import com.zxc.domain.TableInfo;

public class MySql implements DataBase {
	
	private int start;
	
	private int end = PER_SIZE;

	public void queryTableComments(TableInfo tableInfo) throws SQLException {
		
	}

	public String getPageSqls(String sql) {

		String pageSql = " select a.* from (" + sql + ") a limit ?,?";
		return pageSql;
	}

	public int getEndIndex() {
		return PER_SIZE;
	}

	public int getStartIndex() {
		return this.start;
	}

	public void setEndIndex(int end) {
		this.end = end;
	}

	public void setStartIndex(int start) {
		this.start = start;
	}

}
